<?php
    class datphongbs {
        public $MaDP        = 0;
        public $HoTen       = 0;
        public $SDT         = 0;
        public $NgayDat     = 0;
        public $NgayThue    = 0;
        public $LoaiPhong   = 0;
        public $LoaiGiuong  = 0;
        public $SoLuong     = 0;
        public $TinhTrang   = 0;
        
        public function Them(){
            $db = new datphongdb();
            $db->Them($this->MaDP, $this->HoTen, $this->SDT, $this->NgayThue, $this->LoaiPhong, $this->LoaiGiuong, $this->SoLuong);
        }
        
        public function Xoa(){
            $db = new datphongdb();
            $db->Xoa($this->MaDP);
        }
        
        public function LayDanhSach(){
            $db = new datphongdb();
            $db->LayDanhSach($this->NgayThue, $this->TinhTrang);
        }
    }
?>